package han.dao;

import han.pojo.Details;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @authou HanDianWei
 * @create 2020-10-23 13:45
 */
public interface DetailMapper {

//增加垃圾   addDetail
int addDetail(Details details);
//修改垃圾    updDetail
int updDetail(Details details);
//删除垃圾     delDetailById
int delDetailById(@Param("d_id") int id);
//按名字搜索  getDetailByName
List<Details> getDetailByName(@Param("d_name") String name);
    //按id搜索  getDetailById
Details getDetailById(@Param("d_id") int id);
//按分类查询  getDetailByClassId
List<Details> getDetailByClassId(@Param("c_id") int cid);
//显示所有的分类 getAllDetail
List<Details> getAllDetail();
}
